import ajax from '../utils/ajax.js'
import api from '../config/api.js'
import Enum from '../config/enum.js'
import { globalData } from '../config/globalData'
import baseUrl from '../baseUrl'

export default class Mall {
  static async getXXSlideshow () {
    let url = baseUrl.server + api.GET_ADV
    let res = await ajax.post(url, {
      token: globalData.access_token,
      adv_id: Enum.ADV_TYPE.心喜轮播图
    })
    return res
  }

  static async getDiscountSlideshow () {
    let url = baseUrl.server + api.GET_ADV
    let res = await ajax.post(url, {
      token: globalData.access_token,
      adv_id: Enum.ADV_TYPE.折扣轮播图
    })
    return res
  }
}
